
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# by gender

INPUT_FILE=${CURRENT_DIR}/data/datasets/UnderlyingCauseofDeath1999-2015_bygender_black_white_agelessthan14.formatted.txt
OUTPUT_FILE=${INPUT_FILE}".xtnformatted.txt"

python ${CURRENT_DIR}/data/preprocessing/cdc/ei_preprocessing.py \
--input_file ${INPUT_FILE} \
--output_file ${OUTPUT_FILE}

# by race

INPUT_FILE=${CURRENT_DIR}/data/datasets/UnderlyingCauseofDeath1999-2015_byrace_black_white_agelessthan14.formatted.txt
OUTPUT_FILE=${INPUT_FILE}".xtnformatted.txt"

python ${CURRENT_DIR}/data/preprocessing/cdc/ei_preprocessing_race.py \
--input_file ${INPUT_FILE} \
--output_file ${OUTPUT_FILE}
